﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CHPM.PL.DesktopUI.Code.Common;
using CHPM.PL.DesktopUI.Interfaces;
using CHPM.PL.DesktopUI.Presenters;

namespace CHPM.PL.DesktopUI
{
    public partial class FirstForm : Form, IView
    {
        private FormPresenter formPresenter;
        public FirstForm()
        {
            InitializeComponent();
            formPresenter = new FormPresenter(this, IoCContainer.ServiceLocator);
        }

        public Control AsControl
        {
            get { return this; }
        }

        private void додатиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            formPresenter.ShowAddNewPatient();
        }

        private void редагуватиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            formPresenter.ShowEditPatient();
        }
    }
}
